package com.dartfar.workflow.service;

import net.sf.json.JSONObject;

import com.dartfar.base.model.Person;
import com.dartfar.base.service.BaseService;
import com.dartfar.workflow.model.WorkflowProcessFunMount;

/**
 * 流程挂接服务
 * @author 王琦
 *
 */

public interface WorkflowProcessFunMountService extends BaseService<WorkflowProcessFunMount> {
	
	/**
	 * 发起流程
	 * @param pdid
	 * @param modelName
	 * @param idName
	 * @param idValue
	 */
	public void startProcess(Person person, int wpfmId,  int id, JSONObject returnObj);
	/**
	 * 撤销流程
	 * @param piid
	 * @param modelName
	 * @param idName
	 * @param idValue
	 */
	public void cancelProcess(String taskId, String modelName, String idValue);
	/**
	 * 挂接流程
	 * @param workflowProcessFunMount
	 */
	public void mountProcess(WorkflowProcessFunMount workflowProcessFunMount);
	/**
	 * 取消挂接流程
	 * @param workflowProcessFunMount
	 */
	public void cancelMountProcess(WorkflowProcessFunMount workflowProcessFunMount);

}
